{extend name="common@public/base" /}

{block name="title"}
<title>{$arctype.typename} - {:confv('title')}</title>
<meta name="keywords" content="{$arctype.keywords}">
<meta name="description" content="{$arctype.description}">
{/block}

{block name="pjax_container"}
<div class="content">
    <div class="row">

        <div class="col-sm-8" >
        	<div class="box box-solid">
	            <div class="box-body text-muted">
	            	<a class="text-muted" href="{$Think.H_NAME}">首页</a>&nbsp; > &nbsp;<a class="text-muted" href="/{$Think.C_NAME}/{$parent.dirs}">{$parent['typename']}</a>{neq name="$arctype['pid']" value="0"}&nbsp; > &nbsp;<span class="text-muted">{$arctype.typename}{/neq}</span>
        	    </div>
          	</div>
			<!--文章分类-->
			<div class="box box-solid">
	            <div class="box-body x-pt-0">
	            	<div class="row  x-mlr-0">
	            		<div class="col-sm-3 col-xs-4 x-plr-5 x-mt-10">
							<a href="/{$Think.C_NAME}/{$parent.dirs}" class="btn btn-block btn-default">{$parent['typename']}</a>
						</div>
	            		{volist name="typelist" id="vo"}
						<div class="col-sm-3 col-xs-4 x-plr-5 x-mt-10">
							<a href="/{$Think.C_NAME}/{$vo.dirs}" class="btn btn-block btn-default">{$vo['typename']}</a>
						</div>
						{/volist}
	            	</div>
	            </div>
          	</div>
			<!--文章内容-->
			{neq name="$arctype.pid" value="0"}
	            <div class="box box-solid">
	                <div class="box-body">
	                	{$arctype.content}
	                </div>
	            </div>
            {else /}
	    		{volist name="typelist" id="vo" empty="$empty"}
				<div class="media box box-solid x-p-10">
					<a class="media-left" href="/Category/{$vo.dirs}" title="{$vo.typename}">
				       <img class="media-object x-yy-4" src="{$vo.litpic|default='/static/common/img/logo.jpg'}" />
					</a>
					<div class="media-body">
						<a href="/Category/{$vo.dirs}" class="" title="{$vo.typename}">
							<h4 class="media-heading x-t-no1 x-mb-0 x-lh-28">{$vo.typename}</h4>
							<p class="x-t-no3 x-lh-20 text-muted x-mb-0">
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$vo.description|default='没有简介'}
							</p>
						</a>
					</div>
					<div class="x-tc-hui x-mt-5">
				        <div class="pull-left">
				            <a href="/{$Think.C_NAME}/{$parent.dirs}" class="text-muted" title="{$parent->typename}">
				            <i class="fa fa-tags"></i> {$parent->typename}</a>
				        </div>
				        <div class="pull-right x-tr">
				            <i class="fa fa-clock-o x-pr-5"> {$vo.create_time}</i>
				        </div>
				   </div>
				</div>
	        	{/volist}
            {/neq}

			<div class="box box-solid">
				<div class="box-header with-border">
        			<h3 class="box-title"><i class="fa fa-pencil-square-o"></i> 有什么意见和建议请留言</h3>
				</div>
	            <div class="box-body">
	                <form class="form-horizontal" method="POST" action="{:url('index/create')}" onsubmit="return false" >
	                    <input type="hidden" name="status" value="1" />
	                    <div class="form-group">
	                        <label class="col-sm-2 control-label">标题</label>
	                        <div class="col-sm-9"><input class="form-control" name="title" placeholder="标题"></div>
	                    </div>
	                    <div class="form-group">
	                        <label class="col-sm-2 control-label">邮箱</label>
	                        <div class="col-sm-9"><input class="form-control" name="email" placeholder="邮箱"></div>
	                    </div>
	                    <div class="form-group">
	                        <label class="col-sm-2 control-label">留言内容</label>
	                        <div class="col-sm-9"><textarea class="form-control" style="resize:none;height:150px;" name="content" placeholder="留言内容"></textarea></div>
	                    </div>
	                    <div class="form-group">
	                        <label class="col-sm-2 control-label"></label>
	                        <div class="col-sm-9">
	                            <button type="reset" class="btn btn-warning pull-right">撤销</button>
	                            <button type="submit" class="btn btn-info pull-left submits" data-loading-text="&lt;i class='fa fa-spinner fa-spin '&gt;&lt;/i&gt; 提交">提交</button>
	                        </div>
	                    </div>
	                </form>
	            </div>
            </div>
        </div>

        <div class="col-sm-4" >
            {include file="inc/right" /}
        </div>

    </div>
</div>

<script>

</script>
{/block}